package cn.lucky.springcloud.service.impl;

import cn.lucky.springcloud.dao.PaymentDao;
import cn.lucky.springcloud.entities.Payment;
import cn.lucky.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lingpeng.jiang
 * @create 2020-11-30-23:45
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;


    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }

    @Override
    public List<Payment> queryPayment() {
        return paymentDao.queryPayment();
    }

}
